﻿@using Microsoft.AspNet.Identity
@if (Session["user"] != null)
{
    <form class="navbar-right">
        @Html.AntiForgeryToken()

        <ul class="nav navbar-nav navbar-right">
            <li>
                @Html.Label("Welcome " + Session["user"])
            </li>
            <li><a href="@Url.Action("Logout", "Account")">Log out</a></li>
        </ul>
    </form>

}
else
{
    <ul class="nav navbar-nav navbar-right">
        @*<li>@Html.ActionLink("Register", "Register", "Account", routeValues: null, htmlAttributes: new { id = "registerLink" })</li>*@
        <li>@Html.ActionLink("Log in", "Login", "Account", routeValues: null, htmlAttributes: new { id = "loginLink" })</li>
    </ul>
}
